home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / PInterfaces / GXErrors.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  34.5 KB  |  732 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        GXErrors.p
  3.  
  4.      Contains:    QuickDraw GX error constants and debugging routines
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT GXErrors;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __GXERRORS__}
  30. {$SETC __GXERRORS__ := 1}
  31.  
  32. {$I+}
  33. {$SETC GXErrorsIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __CONDITIONALMACROS__}
  38. {$I ConditionalMacros.p}
  39. {$ENDC}
  40.  
  41. {$IFC UNDEFINED __MIXEDMODE__}
  42. {$I MixedMode.p}
  43. {$ENDC}
  44. {    Types.p                                                        }
  45.  
  46. {$IFC UNDEFINED __GXTYPES__}
  47. {$I GXTypes.p}
  48. {$ENDC}
  49. {    GXMath.p                                                    }
  50. {        FixMath.p                                                }
  51.  
  52. {$PUSH}
  53. {$ALIGN MAC68K}
  54. {$LibExport+}
  55. {$SETC graphicsErrorsIncludes := 1}
  56.  
  57. CONST
  58.     gxFirstSystemError            = -27999;                        { 0xffff92a1 }
  59.     gxFirstFatalError            = -27999;
  60.     gxLastFatalError            = -27951;
  61.     gxFirstNonfatalError        = -27950;
  62.     gxFirstFontScalerError        = -27900;
  63.     gxLastFontScalerError        = -27851;
  64.     gxFirstParameterError        = -27850;
  65.     gxFirstImplementationLimitError = -27800;
  66.     gxFirstSystemDebuggingError    = -27700;
  67.     gxLastSystemError            = -27000;                        { 0xffff9688 }
  68.     gxFirstLibraryError            = 1048576;                        { 0x00100000 }
  69.     gxLastLibraryError            = 2097151;                        { 0x001fffff }
  70.     gxFirstAppError                = 2097152;                        { 0x00200000 }
  71.     gxLastAppError                = 4194303;                        { 0x003fffff }
  72.     gxFirstSystemWarning        = -26999;                        { 0xffff9689 }
  73.     gxFirstResultOutOfRangeWarning = -26950;
  74.     gxFirstParameterOutOfRangeWarning = -26900;
  75.     gxFirstFontScalerWarning    = -26850;
  76.     gxFirstSystemDebuggingWarning = -26700;
  77.     gxLastSystemWarning            = -26000;                        { 0xffff9a70 }
  78.     gxFirstLibraryWarning        = 4194304;                        { 0x00400000 }
  79.     gxLastLibraryWarning        = 5242879;                        { 0x004fffff }
  80.     gxFirstAppWarning            = 5242880;                        { 0x00500000 }
  81.     gxLastAppWarning            = 7340031;                        { 0x006fffff }
  82.     gxFirstSystemNotice            = -25999;                        { 0xffff9a71 }
  83.     gxLastSystemNotice            = -25500;                        { 0xffff9c64 }
  84.     gxFirstLibraryNotice        = 7340032;                        { 0x00700000 }
  85.     gxLastLibraryNotice            = 7602175;                        { 0x0073ffff }
  86.     gxFirstAppNotice            = 7602176;                        { 0x00740000 }
  87.     gxLastAppNotice                = 8388607;                        { 0x007fffff }
  88.  
  89. { truly fatal errors }
  90.     out_of_memory                = gxFirstFatalError;
  91.     internal_fatal_error        = gxFirstFatalError + 1;
  92.     no_outline_font_found        = gxFirstFatalError + 2;
  93.     not_enough_memory_for_graphics_client_heap = gxFirstFatalError + 3;
  94.     could_not_create_backing_store = gxFirstFatalError + 4;
  95. { internal errors }
  96.     internal_error                = gxFirstNonfatalError;
  97.     internal_font_error            = gxFirstNonfatalError + 1;
  98.     internal_layout_error        = gxFirstNonfatalError + 2;
  99. { recoverable errors }
  100.     could_not_dispose_backing_store = internal_layout_error + 2;
  101.     unflattening_interrupted_by_client = internal_layout_error + 3;
  102. { font manager errors }
  103.     font_cannot_be_changed        = internal_layout_error + 4;
  104.     illegal_font_parameter        = internal_layout_error + 5;
  105. { gxFont scaler errors }
  106.     null_font_scaler_context    = gxFirstFontScalerError;
  107.     null_font_scaler_input        = gxFirstFontScalerError + 1;
  108.     invalid_font_scaler_context    = gxFirstFontScalerError + 2;
  109.     invalid_font_scaler_input    = gxFirstFontScalerError + 3;
  110.     invalid_font_scaler_font_data = gxFirstFontScalerError + 4;
  111.     font_scaler_newblock_failed    = gxFirstFontScalerError + 5;
  112.     font_scaler_getfonttable_failed = gxFirstFontScalerError + 6;
  113.     font_scaler_bitmap_allocation_failed = gxFirstFontScalerError + 7;
  114.     font_scaler_outline_allocation_failed = gxFirstFontScalerError + 8;
  115.     required_font_scaler_table_missing = gxFirstFontScalerError + 9;
  116.     unsupported_font_scaler_outline_format = gxFirstFontScalerError + 10;
  117.     unsupported_font_scaler_stream_format = gxFirstFontScalerError + 11;
  118.     unsupported_font_scaler_font_format = gxFirstFontScalerError + 12;
  119.     font_scaler_hinting_error    = gxFirstFontScalerError + 13;
  120.     font_scaler_rasterizer_error = gxFirstFontScalerError + 14;
  121.     font_scaler_internal_error    = gxFirstFontScalerError + 15;
  122.     font_scaler_invalid_matrix    = gxFirstFontScalerError + 16;
  123.     font_scaler_fixed_overflow    = gxFirstFontScalerError + 17;
  124.     font_scaler_api_version_mismatch = gxFirstFontScalerError + 18;
  125.     font_scaler_streaming_aborted = gxFirstFontScalerError + 19;
  126.     unknown_font_scaler_error    = gxFirstFontScalerError + 20;
  127. { bad parameters }
  128.     parameter_is_nil            = gxFirstParameterError;
  129.     shape_is_nil                = gxFirstParameterError + 1;
  130.     style_is_nil                = gxFirstParameterError + 2;
  131.     transform_is_nil            = gxFirstParameterError + 3;
  132.     ink_is_nil                    = gxFirstParameterError + 4;
  133.     transferMode_is_nil            = gxFirstParameterError + 5;
  134.     color_is_nil                = gxFirstParameterError + 6;
  135.     colorProfile_is_nil            = gxFirstParameterError + 7;
  136.     colorSet_is_nil                = gxFirstParameterError + 8;
  137.     spoolProcedure_is_nil        = gxFirstParameterError + 9;
  138.     tag_is_nil                    = gxFirstParameterError + 10;
  139.     type_is_nil                    = gxFirstParameterError + 11;
  140.     mapping_is_nil                = gxFirstParameterError + 12;
  141.     invalid_viewDevice_reference = gxFirstParameterError + 13;
  142.     invalid_viewGroup_reference    = gxFirstParameterError + 14;
  143.     invalid_viewPort_reference    = gxFirstParameterError + 15;
  144. { implementation limits, these should be right before the debugging errors }
  145.     number_of_contours_exceeds_implementation_limit = gxFirstImplementationLimitError;
  146.     number_of_points_exceeds_implementation_limit = gxFirstImplementationLimitError + 1;
  147.     size_of_polygon_exceeds_implementation_limit = gxFirstImplementationLimitError + 2;
  148.     size_of_path_exceeds_implementation_limit = gxFirstImplementationLimitError + 3;
  149.     size_of_text_exceeds_implementation_limit = gxFirstImplementationLimitError + 4;
  150.     size_of_bitmap_exceeds_implementation_limit = gxFirstImplementationLimitError + 5;
  151.     number_of_colors_exceeds_implementation_limit = gxFirstImplementationLimitError + 6;
  152.     procedure_not_reentrant        = gxFirstImplementationLimitError + 7;
  153.  
  154. { internal debugging errors }
  155.     functionality_unimplemented    = gxFirstSystemDebuggingError;
  156.     clip_to_frame_shape_unimplemented = gxFirstSystemDebuggingError + 1;
  157. { font parameter debugging errors }
  158.     illegal_font_storage_type    = gxFirstSystemDebuggingError + 2;
  159.     illegal_font_storage_reference = gxFirstSystemDebuggingError + 3;
  160.     illegal_font_attributes        = gxFirstSystemDebuggingError + 4;
  161. { parameter debugging errors }
  162.     parameter_out_of_range        = gxFirstSystemDebuggingError + 5;
  163.     inconsistent_parameters        = gxFirstSystemDebuggingError + 6;
  164.     index_is_less_than_zero        = gxFirstSystemDebuggingError + 7;
  165.     index_is_less_than_one        = gxFirstSystemDebuggingError + 8;
  166.     count_is_less_than_zero        = gxFirstSystemDebuggingError + 9;
  167.     count_is_less_than_one        = gxFirstSystemDebuggingError + 10;
  168.     contour_is_less_than_zero    = gxFirstSystemDebuggingError + 11;
  169.     length_is_less_than_zero    = gxFirstSystemDebuggingError + 12;
  170.     invalid_client_reference    = gxFirstSystemDebuggingError + 13;
  171.     invalid_graphics_heap_start_pointer = gxFirstSystemDebuggingError + 14;
  172.     invalid_nongraphic_globals_pointer = gxFirstSystemDebuggingError + 15;
  173.     colorSpace_out_of_range        = gxFirstSystemDebuggingError + 16;
  174.     pattern_lattice_out_of_range = gxFirstSystemDebuggingError + 17;
  175.     frequency_parameter_out_of_range = gxFirstSystemDebuggingError + 18;
  176.     tinting_parameter_out_of_range = gxFirstSystemDebuggingError + 19;
  177.     method_parameter_out_of_range = gxFirstSystemDebuggingError + 20;
  178.     space_may_not_be_indexed    = gxFirstSystemDebuggingError + 21;
  179.     glyph_index_too_small        = gxFirstSystemDebuggingError + 22;
  180.     no_glyphs_added_to_font        = gxFirstSystemDebuggingError + 23;
  181.     glyph_not_added_to_font        = gxFirstSystemDebuggingError + 24;
  182.     point_does_not_intersect_bitmap = gxFirstSystemDebuggingError + 25;
  183.     required_font_table_not_present = gxFirstSystemDebuggingError + 25;
  184.     unknown_font_table_format    = gxFirstSystemDebuggingError + 26; { the styles encoding is not present in the font }
  185.     shapeFill_not_allowed        = gxFirstSystemDebuggingError + 27;
  186.     inverseFill_face_must_set_clipLayer_flag = gxFirstSystemDebuggingError + 28;
  187.     invalid_transferMode_colorSpace = gxFirstSystemDebuggingError + 29;
  188.     colorProfile_must_be_nil    = gxFirstSystemDebuggingError + 30;
  189.     bitmap_pixel_size_must_be_1    = gxFirstSystemDebuggingError + 31;
  190.     empty_shape_not_allowed        = gxFirstSystemDebuggingError + 32;
  191.     ignorePlatformShape_not_allowed = gxFirstSystemDebuggingError + 33;
  192.     nil_style_in_glyph_not_allowed = gxFirstSystemDebuggingError + 34;
  193.     complex_glyph_style_not_allowed = gxFirstSystemDebuggingError + 35;
  194.     invalid_mapping                = gxFirstSystemDebuggingError + 36;
  195.     cannot_set_item_shapes_to_nil = gxFirstSystemDebuggingError + 37;
  196.     cannot_use_original_item_shapes_when_growing_picture = gxFirstSystemDebuggingError + 38;
  197.     cannot_add_unspecified_new_glyphs = gxFirstSystemDebuggingError + 39;
  198.     cannot_dispose_locked_tag    = gxFirstSystemDebuggingError + 40;
  199.     cannot_dispose_locked_shape    = gxFirstSystemDebuggingError + 41;
  200. { restricted access }
  201.     shape_access_not_allowed    = gxFirstSystemDebuggingError + 42;
  202.     colorSet_access_restricted    = gxFirstSystemDebuggingError + 43;
  203.     colorProfile_access_restricted = gxFirstSystemDebuggingError + 44;
  204.     tag_access_restricted        = gxFirstSystemDebuggingError + 45;
  205.     viewDevice_access_restricted = gxFirstSystemDebuggingError + 46;
  206.     graphic_type_does_not_have_a_structure = gxFirstSystemDebuggingError + 47;
  207.     style_run_array_does_not_match_number_of_characters = gxFirstSystemDebuggingError + 48;
  208.     rectangles_cannot_be_inserted_into = gxFirstSystemDebuggingError + 49;
  209.     unknown_graphics_heap        = gxFirstSystemDebuggingError + 50;
  210.     graphics_routine_selector_is_obsolete = gxFirstSystemDebuggingError + 51;
  211.     cannot_set_graphics_client_memory_without_setting_size = gxFirstSystemDebuggingError + 52;
  212.     graphics_client_memory_too_small = gxFirstSystemDebuggingError + 53;
  213.     graphics_client_memory_is_already_allocated = gxFirstSystemDebuggingError + 54;
  214.     viewPort_is_a_window        = gxFirstSystemDebuggingError + 55;
  215. { wrong type/bad reference }
  216.     illegal_type_for_shape        = gxFirstSystemDebuggingError + 56;
  217.     shape_does_not_contain_a_bitmap = gxFirstSystemDebuggingError + 57;
  218.     shape_does_not_contain_text    = gxFirstSystemDebuggingError + 58;
  219.     picture_expected            = gxFirstSystemDebuggingError + 59;
  220.     bitmap_is_not_resizable        = gxFirstSystemDebuggingError + 60;
  221.     shape_may_not_be_a_bitmap    = gxFirstSystemDebuggingError + 61;
  222.     shape_may_not_be_a_picture    = gxFirstSystemDebuggingError + 62;
  223.     graphic_type_does_not_contain_points = gxFirstSystemDebuggingError + 63;
  224.     graphic_type_does_not_have_multiple_contours = gxFirstSystemDebuggingError + 64;
  225.     graphic_type_cannot_be_mapped = gxFirstSystemDebuggingError + 65;
  226.     graphic_type_cannot_be_moved = gxFirstSystemDebuggingError + 66;
  227.     graphic_type_cannot_be_scaled = gxFirstSystemDebuggingError + 67;
  228.     graphic_type_cannot_be_rotated = gxFirstSystemDebuggingError + 68;
  229.     graphic_type_cannot_be_skewed = gxFirstSystemDebuggingError + 69;
  230.     graphic_type_cannot_be_reset = gxFirstSystemDebuggingError + 70;
  231.     graphic_type_cannot_be_dashed = gxFirstSystemDebuggingError + 71;
  232.     graphic_type_cannot_be_reduced = gxFirstSystemDebuggingError + 72;
  233.     graphic_type_cannot_be_inset = gxFirstSystemDebuggingError + 73;
  234.     shape_cannot_be_inverted    = gxFirstSystemDebuggingError + 74;
  235.     shape_does_not_have_area    = gxFirstSystemDebuggingError + 75;
  236.     shape_does_not_have_length    = gxFirstSystemDebuggingError + 76;
  237.     first_glyph_advance_must_be_absolute = gxFirstSystemDebuggingError + 77;
  238.     picture_cannot_contain_itself = gxFirstSystemDebuggingError + 78;
  239.     viewPort_cannot_contain_itself = gxFirstSystemDebuggingError + 79;
  240.     cannot_set_unique_items_attribute_when_picture_contains_items = gxFirstSystemDebuggingError + 80;
  241.     layer_style_cannot_contain_a_face = gxFirstSystemDebuggingError + 81;
  242.     layer_glyph_shape_cannot_contain_nil_styles = gxFirstSystemDebuggingError + 82;
  243. { validation errors }
  244.     object_wrong_type            = gxFirstSystemDebuggingError + 83;
  245.     shape_wrong_type            = gxFirstSystemDebuggingError + 84;
  246.     style_wrong_type            = gxFirstSystemDebuggingError + 85;
  247.     ink_wrong_type                = gxFirstSystemDebuggingError + 86;
  248.     transform_wrong_type        = gxFirstSystemDebuggingError + 87;
  249.     device_wrong_type            = gxFirstSystemDebuggingError + 88;
  250.     port_wrong_type                = gxFirstSystemDebuggingError + 89;
  251. { validation cache errors }
  252.     shape_cache_wrong_type        = gxFirstSystemDebuggingError + 90;
  253.     style_cache_wrong_type        = gxFirstSystemDebuggingError + 91;
  254.     ink_cache_wrong_type        = gxFirstSystemDebuggingError + 92;
  255.     transform_cache_wrong_type    = gxFirstSystemDebuggingError + 93;
  256.     port_cache_wrong_type        = gxFirstSystemDebuggingError + 94;
  257.     shape_cache_parent_mismatch    = gxFirstSystemDebuggingError + 95;
  258.     style_cache_parent_mismatch    = gxFirstSystemDebuggingError + 96;
  259.     ink_cache_parent_mismatch    = gxFirstSystemDebuggingError + 97;
  260.     transform_cache_parent_mismatch = gxFirstSystemDebuggingError + 98;
  261.     port_cache_parent_mismatch    = gxFirstSystemDebuggingError + 99;
  262.     invalid_shape_cache_port    = gxFirstSystemDebuggingError + 100;
  263.     invalid_shape_cache_device    = gxFirstSystemDebuggingError + 101;
  264.     invalid_ink_cache_port        = gxFirstSystemDebuggingError + 102;
  265.     invalid_ink_cache_device    = gxFirstSystemDebuggingError + 103;
  266.     invalid_style_cache_port    = gxFirstSystemDebuggingError + 104;
  267.     invalid_style_cache_device    = gxFirstSystemDebuggingError + 105;
  268.     invalid_transform_cache_port = gxFirstSystemDebuggingError + 106;
  269.     invalid_transform_cache_device = gxFirstSystemDebuggingError + 107;
  270.     recursive_caches            = gxFirstSystemDebuggingError + 108;
  271. { validation shape cache errors }
  272.     invalid_fillShape_ownerCount = gxFirstSystemDebuggingError + 109;
  273.     recursive_fillShapes        = gxFirstSystemDebuggingError + 110;
  274. { validation memory block errors }
  275.     indirect_memory_block_too_small = gxFirstSystemDebuggingError + 111;
  276.     indirect_memory_block_too_large = gxFirstSystemDebuggingError + 112;
  277.     unexpected_nil_pointer        = gxFirstSystemDebuggingError + 113;
  278.     bad_address                    = gxFirstSystemDebuggingError + 114;
  279. { validation object errors }
  280.     no_owners                    = gxFirstSystemDebuggingError + 115;
  281.     invalid_pointer                = gxFirstSystemDebuggingError + 116;
  282.     invalid_seed                = gxFirstSystemDebuggingError + 117;
  283.     invalid_frame_seed            = gxFirstSystemDebuggingError + 118;
  284.     invalid_text_seed            = gxFirstSystemDebuggingError + 119;
  285.     invalid_draw_seed            = gxFirstSystemDebuggingError + 120;
  286.     bad_private_flags            = gxFirstSystemDebuggingError + 121;
  287. { validation path and polygon errors }
  288.     invalid_vector_count        = gxFirstSystemDebuggingError + 122;
  289.     invalid_contour_count        = gxFirstSystemDebuggingError + 123;
  290. { validation bitmap errors }
  291.     bitmap_ptr_too_small        = gxFirstSystemDebuggingError + 124;
  292.     bitmap_ptr_not_aligned        = gxFirstSystemDebuggingError + 125;
  293.     bitmap_rowBytes_negative    = gxFirstSystemDebuggingError + 126;
  294.     bitmap_width_negative        = gxFirstSystemDebuggingError + 127;
  295.     bitmap_height_negative        = gxFirstSystemDebuggingError + 128;
  296.     invalid_pixelSize            = gxFirstSystemDebuggingError + 129;
  297.     bitmap_rowBytes_too_small    = gxFirstSystemDebuggingError + 130;
  298.     bitmap_rowBytes_not_aligned    = gxFirstSystemDebuggingError + 131;
  299.     bitmap_rowBytes_must_be_specified_for_user_image_buffer = gxFirstSystemDebuggingError + 132;
  300. { validation bitmap image errors }
  301.     invalid_bitImage_fileOffset    = gxFirstSystemDebuggingError + 133;
  302.     invalid_bitImage_owners        = gxFirstSystemDebuggingError + 134;
  303.     invalid_bitImage_rowBytes    = gxFirstSystemDebuggingError + 135;
  304.     invalid_bitImage_internal_flag = gxFirstSystemDebuggingError + 136;
  305. { validation text errors }
  306.     text_bounds_cache_wrong_size = gxFirstSystemDebuggingError + 137;
  307.     text_metrics_cache_wrong_size = gxFirstSystemDebuggingError + 138;
  308.     text_index_cache_wrong_size    = gxFirstSystemDebuggingError + 139;
  309. { validation glyph errors }
  310.     glyph_run_count_negative    = gxFirstSystemDebuggingError + 140;
  311.     glyph_run_count_zero        = gxFirstSystemDebuggingError + 141;
  312.     glyph_run_counts_do_not_sum_to_character_count = gxFirstSystemDebuggingError + 142;
  313.     glyph_first_advance_bit_set_not_allowed = gxFirstSystemDebuggingError + 143;
  314.     glyph_tangent_vectors_both_zero = gxFirstSystemDebuggingError + 144;
  315. { validation layout errors }
  316.     layout_run_length_negative    = gxFirstSystemDebuggingError + 145;
  317.     layout_run_length_zero        = gxFirstSystemDebuggingError + 146;
  318.     layout_run_level_negative    = gxFirstSystemDebuggingError + 147;
  319.     layout_run_lengths_do_not_sum_to_text_length = gxFirstSystemDebuggingError + 148;
  320. { validation picture errors }
  321.     bad_shape_in_picture        = gxFirstSystemDebuggingError + 149;
  322.     bad_style_in_picture        = gxFirstSystemDebuggingError + 150;
  323.     bad_ink_in_picture            = gxFirstSystemDebuggingError + 151;
  324.     bad_transform_in_picture    = gxFirstSystemDebuggingError + 152;
  325.     bad_shape_cache_in_picture    = gxFirstSystemDebuggingError + 153;
  326.     bad_seed_in_picture            = gxFirstSystemDebuggingError + 154;
  327.     invalid_picture_count        = gxFirstSystemDebuggingError + 155;
  328. { validation text face errors }
  329.     bad_textLayer_count            = gxFirstSystemDebuggingError + 156;
  330.     bad_fillType_in_textFace    = gxFirstSystemDebuggingError + 157;
  331.     bad_style_in_textFace        = gxFirstSystemDebuggingError + 158;
  332.     bad_transform_in_textFace    = gxFirstSystemDebuggingError + 159;
  333. { validation transform errors }
  334.     invalid_matrix_flag            = gxFirstSystemDebuggingError + 160;
  335.     transform_clip_missing        = gxFirstSystemDebuggingError + 161;
  336. { validation font cache errors }
  337.     metrics_wrong_type            = gxFirstSystemDebuggingError + 162;
  338.     metrics_point_size_probably_bad = gxFirstSystemDebuggingError + 163;
  339.     scalar_block_wrong_type        = gxFirstSystemDebuggingError + 164;
  340.     scalar_block_parent_mismatch = gxFirstSystemDebuggingError + 165;
  341.     scalar_block_too_small        = gxFirstSystemDebuggingError + 166;
  342.     scalar_block_too_large        = gxFirstSystemDebuggingError + 167;
  343.     invalid_metrics_range        = gxFirstSystemDebuggingError + 168;
  344.     invalid_metrics_flags        = gxFirstSystemDebuggingError + 169;
  345.     metrics_maxWidth_probably_bad = gxFirstSystemDebuggingError + 170;
  346.     font_wrong_type                = gxFirstSystemDebuggingError + 171;
  347.     font_wrong_size                = gxFirstSystemDebuggingError + 172;
  348.     invalid_font_platform        = gxFirstSystemDebuggingError + 173;
  349.     invalid_lookup_range        = gxFirstSystemDebuggingError + 174;
  350.     invalid_lookup_platform        = gxFirstSystemDebuggingError + 175;
  351.     font_not_in_font_list        = gxFirstSystemDebuggingError + 176;
  352.     metrics_not_in_metrics_list    = gxFirstSystemDebuggingError + 177;
  353. { validation view device errors }
  354.     bad_device_private_flags    = gxFirstSystemDebuggingError + 178;
  355.     bad_device_attributes        = gxFirstSystemDebuggingError + 179;
  356.     invalid_device_number        = gxFirstSystemDebuggingError + 180;
  357.     invalid_device_viewGroup    = gxFirstSystemDebuggingError + 181;
  358.     invalid_device_bounds        = gxFirstSystemDebuggingError + 182;
  359.     invalid_bitmap_in_device    = gxFirstSystemDebuggingError + 183;
  360. { validation color set errors }
  361.     colorSet_wrong_type            = gxFirstSystemDebuggingError + 184;
  362.     invalid_colorSet_viewDevice_owners = gxFirstSystemDebuggingError + 185;
  363.     invalid_colorSet_colorSpace    = gxFirstSystemDebuggingError + 186;
  364.     invalid_colorSet_count        = gxFirstSystemDebuggingError + 187;
  365. { validation color profile errors }
  366.     colorProfile_wrong_type        = gxFirstSystemDebuggingError + 188;
  367.     invalid_colorProfile_flags    = gxFirstSystemDebuggingError + 189;
  368.     invalid_colorProfile_response_count = gxFirstSystemDebuggingError + 190;
  369. { validation internal backing store errors }
  370.     backing_free_parent_mismatch = gxFirstSystemDebuggingError + 191;
  371.     backing_store_parent_mismatch = gxFirstSystemDebuggingError + 192;
  372.  
  373. { warnings about warnings }
  374.     warning_stack_underflow        = gxFirstSystemWarning;
  375.     warning_stack_overflow        = gxFirstSystemWarning + 1;
  376.     notice_stack_underflow        = gxFirstSystemWarning + 2;
  377.     notice_stack_overflow        = gxFirstSystemWarning + 3;
  378.     about_to_grow_heap            = gxFirstSystemWarning + 4;
  379.     about_to_unload_objects        = gxFirstSystemWarning + 5;
  380. { result went out of range }
  381.     map_shape_out_of_range        = gxFirstResultOutOfRangeWarning;
  382.     move_shape_out_of_range        = gxFirstResultOutOfRangeWarning + 1;
  383.     scale_shape_out_of_range    = gxFirstResultOutOfRangeWarning + 2;
  384.     rotate_shape_out_of_range    = gxFirstResultOutOfRangeWarning + 3;
  385.     skew_shape_out_of_range        = gxFirstResultOutOfRangeWarning + 4;
  386.     map_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 5;
  387.     move_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 6;
  388.     scale_transform_out_of_range = gxFirstResultOutOfRangeWarning + 7;
  389.     rotate_transform_out_of_range = gxFirstResultOutOfRangeWarning + 8;
  390.     skew_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 9;
  391.     map_points_out_of_range        = gxFirstResultOutOfRangeWarning + 10;
  392. { gave a parameter out of range }
  393.     contour_out_of_range        = gxFirstParameterOutOfRangeWarning;
  394.     index_out_of_range_in_contour = gxFirstParameterOutOfRangeWarning + 1;
  395.     picture_index_out_of_range    = gxFirstParameterOutOfRangeWarning + 2;
  396.     color_index_requested_not_found = gxFirstParameterOutOfRangeWarning + 3;
  397.     colorSet_index_out_of_range    = gxFirstParameterOutOfRangeWarning + 4;
  398.     index_out_of_range            = gxFirstParameterOutOfRangeWarning + 5;
  399.     count_out_of_range            = gxFirstParameterOutOfRangeWarning + 6;
  400.     length_out_of_range            = gxFirstParameterOutOfRangeWarning + 7;
  401.     font_table_index_out_of_range = gxFirstParameterOutOfRangeWarning + 8;
  402.     font_glyph_index_out_of_range = gxFirstParameterOutOfRangeWarning + 9;
  403.     point_out_of_range            = gxFirstParameterOutOfRangeWarning + 10;
  404.     profile_response_out_of_range = gxFirstParameterOutOfRangeWarning + 11;
  405. { gxFont scaler warnings }
  406.     font_scaler_no_output        = gxFirstFontScalerWarning;
  407.     font_scaler_fake_metrics    = gxFirstFontScalerWarning + 1;
  408.     font_scaler_fake_linespacing = gxFirstFontScalerWarning + 2;
  409.     font_scaler_glyph_substitution = gxFirstFontScalerWarning + 3;
  410.     font_scaler_no_kerning_applied = gxFirstFontScalerWarning + 4;
  411. { might not be what you expected }
  412.     character_substitution_took_place = gxFirstFontScalerWarning + 5;
  413.     unable_to_get_bounds_on_multiple_devices = gxFirstFontScalerWarning + 6;
  414.     font_language_not_found        = gxFirstFontScalerWarning + 7;
  415.     font_not_found_during_unflattening = gxFirstFontScalerWarning + 8;
  416. {storage }
  417.     unrecognized_stream_version    = gxFirstFontScalerWarning + 9;
  418.     bad_data_in_stream            = gxFirstFontScalerWarning + 10;
  419.  
  420. { nonsense data }
  421.     new_shape_contains_invalid_data = gxFirstSystemDebuggingWarning;
  422.     new_tag_contains_invalid_data = gxFirstSystemDebuggingWarning + 1;
  423.     extra_data_passed_was_ignored = gxFirstSystemDebuggingWarning + 2;
  424.     font_table_not_found        = gxFirstSystemDebuggingWarning + 3;
  425.     font_name_not_found            = gxFirstSystemDebuggingWarning + 4;
  426. { doesn't make sense to do }
  427.     unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 5;
  428.     unable_to_draw_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 6;
  429.     cannot_dispose_default_shape = gxFirstSystemDebuggingWarning + 7;
  430.     cannot_dispose_default_style = gxFirstSystemDebuggingWarning + 8;
  431.     cannot_dispose_default_ink    = gxFirstSystemDebuggingWarning + 9;
  432.     cannot_dispose_default_transform = gxFirstSystemDebuggingWarning + 10;
  433.     cannot_dispose_default_colorProfile = gxFirstSystemDebuggingWarning + 11;
  434.     cannot_dispose_default_colorSet = gxFirstSystemDebuggingWarning + 12;
  435.     shape_direct_attribute_not_set = gxFirstSystemDebuggingWarning + 13;
  436. { couldn't find what you were looking for }
  437.     point_does_not_intersect_port = gxFirstSystemDebuggingWarning + 14;
  438.     cannot_dispose_non_font        = gxFirstSystemDebuggingWarning + 15;
  439.     face_override_style_font_must_match_style = gxFirstSystemDebuggingWarning + 16;
  440.     union_of_area_and_length_returns_area_only = gxFirstSystemDebuggingWarning + 17;
  441.     insufficient_coordinate_space_for_new_device = gxFirstSystemDebuggingWarning + 18;
  442. { other }
  443.     shape_passed_has_no_bounds    = gxFirstSystemDebuggingWarning + 19;
  444.     tags_of_type_flst_removed    = gxFirstSystemDebuggingWarning + 20;
  445.     translator_not_installed_on_this_grafport = gxFirstSystemDebuggingWarning + 21;
  446.  
  447.     parameters_have_no_effect    = gxFirstSystemNotice;
  448.     attributes_already_set        = gxFirstSystemNotice + 1;
  449.     caps_already_set            = gxFirstSystemNotice + 2;
  450.     clip_already_set            = gxFirstSystemNotice + 3;
  451.     color_already_set            = gxFirstSystemNotice + 4;
  452.     curve_error_already_set        = gxFirstSystemNotice + 5;
  453.     dash_already_set            = gxFirstSystemNotice + 6;
  454.     default_colorProfile_already_set = gxFirstSystemNotice + 7;
  455.     default_ink_already_set        = gxFirstSystemNotice + 8;
  456.     default_transform_already_set = gxFirstSystemNotice + 9;
  457.     default_shape_already_set    = gxFirstSystemNotice + 10;
  458.     default_style_already_set    = gxFirstSystemNotice + 11;
  459.     dither_already_set            = gxFirstSystemNotice + 12;
  460.     encoding_already_set        = gxFirstSystemNotice + 13;
  461.     face_already_set            = gxFirstSystemNotice + 14;
  462.     fill_already_set            = gxFirstSystemNotice + 15;
  463.     font_already_set            = gxFirstSystemNotice + 16;
  464.     font_variations_already_set    = gxFirstSystemNotice + 17;
  465.     glyph_positions_are_already_set = gxFirstSystemNotice + 18;
  466.     glyph_tangents_are_already_set = gxFirstSystemNotice + 19;
  467.     halftone_already_set        = gxFirstSystemNotice + 20;
  468.     hit_test_already_set        = gxFirstSystemNotice + 21;
  469.     ink_already_set                = gxFirstSystemNotice + 22;
  470.     join_already_set            = gxFirstSystemNotice + 23;
  471.     justification_already_set    = gxFirstSystemNotice + 24;
  472.     mapping_already_set            = gxFirstSystemNotice + 25;
  473.     pattern_already_set            = gxFirstSystemNotice + 26;
  474.     pen_already_set                = gxFirstSystemNotice + 27;
  475.     style_already_set            = gxFirstSystemNotice + 28;
  476.     tag_already_set                = gxFirstSystemNotice + 29;
  477.     text_attributes_already_set    = gxFirstSystemNotice + 30;
  478.     text_size_already_set        = gxFirstSystemNotice + 31;
  479.     transfer_already_set        = gxFirstSystemNotice + 32;
  480.     translator_already_installed_on_this_grafport = gxFirstSystemNotice + 33;
  481.     transform_already_set        = gxFirstSystemNotice + 34;
  482.     type_already_set            = gxFirstSystemNotice + 35;
  483.     validation_level_already_set = gxFirstSystemNotice + 36;
  484.     viewPorts_already_set        = gxFirstSystemNotice + 37;
  485.     viewPort_already_in_viewGroup = gxFirstSystemNotice + 38;
  486.     viewDevice_already_in_viewGroup = gxFirstSystemNotice + 39;
  487.     geometry_unaffected            = gxFirstSystemNotice + 40;
  488.     mapping_unaffected            = gxFirstSystemNotice + 41;
  489.     tags_in_shape_ignored        = gxFirstSystemNotice + 42;
  490.     shape_already_in_primitive_form = gxFirstSystemNotice + 43;
  491.     shape_already_in_simple_form = gxFirstSystemNotice + 44;
  492.     shape_already_broken        = gxFirstSystemNotice + 45;
  493.     shape_already_joined        = gxFirstSystemNotice + 46;
  494.     cache_already_cleared        = gxFirstSystemNotice + 47;
  495.     shape_not_disposed            = gxFirstSystemNotice + 48;
  496.     style_not_disposed            = gxFirstSystemNotice + 49;
  497.     ink_not_disposed            = gxFirstSystemNotice + 50;
  498.     transform_not_disposed        = gxFirstSystemNotice + 51;
  499.     colorSet_not_disposed        = gxFirstSystemNotice + 52;
  500.     colorProfile_not_disposed    = gxFirstSystemNotice + 53;
  501.     font_not_disposed            = gxFirstSystemNotice + 54;
  502.     glyph_tangents_have_no_effect = gxFirstSystemNotice + 55;
  503.     glyph_positions_determined_by_advance = gxFirstSystemNotice + 56;
  504.     transform_viewPorts_already_set = gxFirstSystemNotice + 57;
  505.     directShape_attribute_set_as_side_effect = gxFirstSystemNotice + 58;
  506.     lockShape_called_as_side_effect = gxFirstSystemNotice + 59;
  507.     lockTag_called_as_side_effect = gxFirstSystemNotice + 60;
  508.     shapes_unlocked_as_side_effect = gxFirstSystemNotice + 61;
  509.     shape_not_locked            = gxFirstSystemNotice + 62;
  510.     tag_not_locked                = gxFirstSystemNotice + 63;
  511.     profile_not_locked            = tag_not_locked;
  512.     lockProfile_called_as_side_effect = lockTag_called_as_side_effect;
  513.     disposed_dead_caches        = gxFirstSystemNotice + 64;
  514.     disposed_live_caches        = gxFirstSystemNotice + 65;
  515.     low_on_memory                = gxFirstSystemNotice + 66;
  516.     very_low_on_memory            = gxFirstSystemNotice + 67;
  517.     transform_references_disposed_viewPort = gxFirstSystemNotice + 68;
  518.  
  519.     
  520. TYPE
  521.     gxGraphicsError = LONGINT;
  522.  
  523.     gxGraphicsWarning = LONGINT;
  524.  
  525.     gxGraphicsNotice = LONGINT;
  526.  
  527.     gxUserErrorProcPtr = ProcPtr;  { PROCEDURE gxUserError(status: gxGraphicsError; refcon: LONGINT); }
  528.     gxUserWarningProcPtr = ProcPtr;  { PROCEDURE gxUserWarning(status: gxGraphicsWarning; refcon: LONGINT); }
  529.     gxUserNoticeProcPtr = ProcPtr;  { PROCEDURE gxUserNotice(status: gxGraphicsNotice; refcon: LONGINT); }
  530.     gxUserErrorUPP = UniversalProcPtr;
  531.     gxUserWarningUPP = UniversalProcPtr;
  532.     gxUserNoticeUPP = UniversalProcPtr;
  533.  
  534. CONST
  535.     uppgxUserErrorProcInfo = $000003C1; { PROCEDURE (4 byte param, 4 byte param); }
  536.     uppgxUserWarningProcInfo = $000003C1; { PROCEDURE (4 byte param, 4 byte param); }
  537.     uppgxUserNoticeProcInfo = $000003C1; { PROCEDURE (4 byte param, 4 byte param); }
  538.  
  539. FUNCTION NewgxUserErrorProc(userRoutine: gxUserErrorProcPtr): gxUserErrorUPP;
  540.     {$IFC NOT GENERATINGCFM }
  541.     INLINE $2E9F;
  542.     {$ENDC}
  543.  
  544. FUNCTION NewgxUserWarningProc(userRoutine: gxUserWarningProcPtr): gxUserWarningUPP;
  545.     {$IFC NOT GENERATINGCFM }
  546.     INLINE $2E9F;
  547.     {$ENDC}
  548.  
  549. FUNCTION NewgxUserNoticeProc(userRoutine: gxUserNoticeProcPtr): gxUserNoticeUPP;
  550.     {$IFC NOT GENERATINGCFM }
  551.     INLINE $2E9F;
  552.     {$ENDC}
  553.  
  554. PROCEDURE CallgxUserErrorProc(status: gxGraphicsError; refcon: LONGINT; userRoutine: gxUserErrorUPP);
  555.     {$IFC NOT GENERATINGCFM}
  556.     INLINE $205F, $4E90;
  557.     {$ENDC}
  558.  
  559. PROCEDURE CallgxUserWarningProc(status: gxGraphicsWarning; refcon: LONGINT; userRoutine: gxUserWarningUPP);
  560.     {$IFC NOT GENERATINGCFM}
  561.     INLINE $205F, $4E90;
  562.     {$ENDC}
  563.  
  564. PROCEDURE CallgxUserNoticeProc(status: gxGraphicsNotice; refcon: LONGINT; userRoutine: gxUserNoticeUPP);
  565.     {$IFC NOT GENERATINGCFM}
  566.     INLINE $205F, $4E90;
  567.     {$ENDC}
  568.     
  569. TYPE
  570.     gxUserErrorFunction = gxUserErrorUPP;
  571.  
  572.     gxUserWarningFunction = gxUserWarningUPP;
  573.  
  574.     gxUserNoticeFunction = gxUserNoticeUPP;
  575.  
  576.  
  577. CONST
  578.     common_colors_not_initialized = gxFirstLibraryError;
  579.     no_open_picture                = gxFirstLibraryError + 1;
  580.     picture_already_open        = gxFirstLibraryError + 2;
  581.     no_open_poly                = gxFirstLibraryError + 3;
  582.     poly_already_open            = gxFirstLibraryError + 4;
  583.     no_open_region                = gxFirstLibraryError + 5;
  584.     region_already_open            = gxFirstLibraryError + 6;
  585.     no_active_picture            = gxFirstLibraryError + 7;
  586.  
  587.     no_picture_drawn            = gxFirstLibraryWarning;
  588.     polygons_have_different_size_contours = gxFirstLibraryWarning + 1;
  589.     graphic_type_cannot_be_specifed_by_four_values = gxFirstLibraryWarning + 2;
  590.     graphic_type_cannot_be_specifed_by_six_values = gxFirstLibraryWarning + 3;
  591.     point_expected                = gxFirstLibraryWarning + 4;
  592.     line_or_rectangle_expected    = gxFirstLibraryWarning + 5;
  593.     curve_expected                = gxFirstLibraryWarning + 6;
  594.     graphic_type_does_not_contain_control_bits = gxFirstLibraryWarning + 7;
  595.     request_exceeds_available_data = gxFirstLibraryWarning + 8;
  596.     extra_data_unread            = gxFirstLibraryWarning + 9;
  597.     no_variable_length_user_data_saved = gxFirstLibraryWarning + 10;
  598.  
  599.     zero_length_string_passed    = gxFirstLibraryNotice;
  600.  
  601. {$SETC graphicsDebuggingIncludes := 1}
  602. { These levels tell how to validate routines.  Choose one. }
  603.     gxNoValidation                = $00;                            { no validation }
  604.     gxPublicValidation            = $01;                            { check parameters to public routines }
  605.     gxInternalValidation        = $02;                            { check parameters to internal routines }
  606. { These levels tell how to validate types.  Choose one. }
  607.     gxTypeValidation            = $00;                            { check types of objects }
  608.     gxStructureValidation        = $10;                            { check fields of private structures }
  609.     gxAllObjectValidation        = $20;                            { check every object over every call }
  610. { These levels tell how to validate memory manager blocks.  Choose any combination. }
  611.     gxNoMemoryManagerValidation    = $0000;
  612.     gxApBlockValidation            = $0100;                        { check the relevant block structures after each memory mgr. call }
  613.     gxFontBlockValidation        = $0200;                        { check the system gxHeap as well }
  614.     gxApHeapValidation            = $0400;                        { check the memory manager’s gxHeap after every mem. call }
  615.     gxFontHeapValidation        = $0800;                        { check the system gxHeap as well }
  616.     gxCheckApHeapValidation        = $1000;                        { check the memory manager’s gxHeap if checking routine parameters }
  617.     gxCheckFontHeapValidation    = $2000;                        { check the system gxHeap as well }
  618.  
  619.     
  620. TYPE
  621.     gxValidationLevel = LONGINT;
  622.  
  623.  
  624. CONST
  625.     no_draw_error                = 0;
  626. { gxShape type errors }
  627.     shape_emptyType                = 1;
  628.     shape_inverse_fullType        = 2;
  629.     rectangle_zero_width        = 3;
  630.     rectangle_zero_height        = 4;
  631.     polygon_empty                = 5;
  632.     path_empty                    = 6;
  633.     bitmap_zero_width            = 7;
  634.     bitmap_zero_height            = 8;
  635.     text_empty                    = 9;
  636.     glyph_empty                    = 10;
  637.     layout_empty                = 11;
  638.     picture_empty                = 12;
  639. { general gxShape errors }
  640.     shape_no_fill                = 13;
  641.     shape_no_enclosed_area        = 14;
  642.     shape_no_enclosed_pixels    = 15;
  643.     shape_very_small            = 16;
  644.     shape_very_large            = 17;
  645.     shape_contours_cancel        = 18;
  646. { gxStyle errors }
  647.     pen_too_small                = 19;
  648.     text_size_too_small            = 20;
  649.     dash_empty                    = 21;
  650.     start_cap_empty                = 22;
  651.     pattern_empty                = 23;
  652.     textFace_empty                = 24;
  653.     shape_primitive_empty        = 25;
  654.     shape_primitive_very_small    = 26;
  655. { gxInk errors }
  656.     transfer_equals_noMode        = 27;
  657.     transfer_matrix_ignores_source = 28;
  658.     transfer_matrix_ignores_device = 29;
  659.     transfer_source_reject        = 30;
  660.     transfer_mode_ineffective    = 31;
  661.     colorSet_no_entries            = 32;
  662.     bitmap_colorSet_one_entry    = 33;
  663. { gxTransform errors }
  664.     transform_scale_too_small    = 34;
  665.     transform_map_too_large        = 35;
  666.     transform_move_too_large    = 36;
  667.     transform_scale_too_large    = 37;
  668.     transform_rotate_too_large    = 38;
  669.     transform_perspective_too_large = 39;
  670.     transform_skew_too_large    = 40;
  671.     transform_clip_no_intersection = 41;
  672.     transform_clip_empty        = 42;
  673.     transform_no_viewPorts        = 43;
  674. { gxViewPort errors }
  675.     viewPort_disposed            = 44;
  676.     viewPort_clip_empty            = 45;
  677.     viewPort_clip_no_intersection = 46;
  678.     viewPort_scale_too_small    = 47;
  679.     viewPort_map_too_large        = 48;
  680.     viewPort_move_too_large        = 49;
  681.     viewPort_scale_too_large    = 50;
  682.     viewPort_rotate_too_large    = 51;
  683.     viewPort_perspective_too_large = 52;
  684.     viewPort_skew_too_large        = 53;
  685.     viewPort_viewGroup_offscreen = 54;
  686. { gxViewDevice errors }
  687.     viewDevice_clip_no_intersection = 55;
  688.     viewDevice_scale_too_small    = 56;
  689.     viewDevice_map_too_large    = 57;
  690.     viewDevice_move_too_large    = 58;
  691.     viewDevice_scale_too_large    = 59;
  692.     viewDevice_rotate_too_large    = 60;
  693.     viewDevice_perspective_too_large = 61;
  694.     viewDevice_skew_too_large    = 62;
  695.  
  696.     
  697. TYPE
  698.     gxDrawError = LONGINT;
  699.  
  700.     gxUserDebugFunction = ProcPtr;  { FUNCTION (str: ConstCStringPtr; message: LONGINT; reference: LONGINT): BOOLEAN; }
  701.  
  702.  
  703. FUNCTION GXGetShapeDrawError(source: gxShape): gxDrawError; C;
  704. PROCEDURE GXValidateAll; C;
  705. PROCEDURE GXValidateColorSet(target: gxColorSet); C;
  706. PROCEDURE GXValidateColorProfile(target: gxColorProfile); C;
  707. PROCEDURE GXValidateGraphicsClient(target: gxGraphicsClient); C;
  708. PROCEDURE GXValidateInk(target: gxInk); C;
  709. PROCEDURE GXValidateShape(target: gxShape); C;
  710. PROCEDURE GXValidateStyle(target: gxStyle); C;
  711. PROCEDURE GXValidateTag(target: gxTag); C;
  712. PROCEDURE GXValidateTransform(target: gxTransform); C;
  713. PROCEDURE GXValidateViewDevice(target: gxViewDevice); C;
  714. PROCEDURE GXValidateViewPort(target: gxViewPort); C;
  715. PROCEDURE GXValidateViewGroup(target: gxViewGroup); C;
  716. FUNCTION GXGetValidation: gxValidationLevel; C;
  717. PROCEDURE GXSetValidation(level: gxValidationLevel); C;
  718. FUNCTION GXGetValidationError(procedureName: CStringPtr; argument: UNIV Ptr; VAR argumentNumber: LONGINT): LONGINT; C;
  719. FUNCTION GXGetUserGraphicsDebug(VAR reference: LONGINT): gxUserDebugFunction; C;
  720. PROCEDURE GXSetUserGraphicsDebug(userFunction: gxUserDebugFunction; reference: LONGINT); C;
  721.  
  722. {$ALIGN RESET}
  723. {$POP}
  724.  
  725. {$SETC UsingIncludes := GXErrorsIncludes}
  726.  
  727. {$ENDC} {__GXERRORS__}
  728.  
  729. {$IFC NOT UsingIncludes}
  730.  END.
  731. {$ENDC}
  732.